#ifndef _GPIODEF_H_
#define _GPIODEF_H_
enum
{
	HIGH_Z		= 0,					
	INPUT		= 1,          
	OUTPUT		= 2,          
                            
	P00_COM0_SETTING		= 3,  
	P01_COM1_SETTING		= 3,  
	P02_COM2_SETTING		= 3,  
	P03_COM3_SETTING		= 3,  
	P04_COM4_SETTING		= 3,  
	P05_COM5_SETTING		= 3,  
	P06_COM6_SETTING		= 3,  
	P07_COM7_SETTING		= 3,  
	
	P57_SEG0_SETTING		= 3,  
	P34_SEG1_SETTING		= 3,  
	P35_SEG2_SETTING		= 3,  
	P56_SEG3_SETTING		= 3,  
	P50_SEG4_SETTING		= 3,  
	P51_SEG5_SETTING		= 3,  
	P52_SEG6_SETTING		= 3,  
	P53_SEG7_SETTING		= 3,  
	P54_SEG8_SETTING		= 3,  
	P55_SEG9_SETTING		= 3,  
	P60_SEG10_SETTING		= 3,  
	P61_SEG11_SETTING		= 3,  
	P62_SEG12_SETTING		= 3,  
	P63_SEG13_SETTING		= 3,  
	P64_SEG14_SETTING		= 3,  
	P65_SEG15_SETTING		= 3,  
	P10_SEG16_SETTING		= 3,  
	P11_SEG17_SETTING		= 3,  
	P12_SEG18_SETTING		= 3,  
	P13_SEG19_SETTING		= 3,  
	P14_SEG20_SETTING		= 3,  
	P15_SEG21_SETTING		= 3,  
	P16_SEG22_SETTING		= 3,  
	P17_SEG23_SETTING		= 3,  
	P27_SEG24_SETTING		= 3,  
	P26_SEG25_SETTING		= 3,  
	P25_SEG26_SETTING		= 3,  
	P24_SEG27_SETTING		= 3,  
	P23_SEG28_SETTING		= 3,  
	P22_SEG29_SETTING		= 3,  
	P21_SEG30_SETTING		= 3,  
	P20_SEG31_SETTING		= 3,  
	P07_LCD_SEG32_SETTING		= 4,  
	P06_LCD_SEG33_SETTING		= 4,  
	P05_LCD_SEG34_SETTING		= 4,  
	P04_LCD_SEG35_SETTING		= 4,  
                        
	P70_TK0_SETTING				= 4,
	P67_TK1_SETTING				= 4,
	P66_TK2_SETTING				= 4,
	P37_TK3_SETTING				= 4,
	P36_TK4_SETTING				= 4,
	P33_TK5_SETTING				= 4,
	P32_TK6_SETTING				= 4,
	P47_TK7_SETTING				= 4,
	P46_TK8_SETTING				= 4,
	P45_TK9_SETTING				= 4,
	P44_TK10_SETTING			= 4,
	P43_TK11_SETTING			= 4,
	P42_TK12_SETTING			= 4,
	P41_TK13_SETTING			= 4,
	P40_TK14_SETTING			= 4,
	P34_TK15_SETTING			= 4,
	P35_TK16_SETTING			= 4,
	P56_TK17_SETTING			= 4,
	P50_TK18_SETTING			= 4,
	P51_TK19_SETTING			= 4,
	P52_TK20_SETTING			= 4,
	P53_TK21_SETTING			= 4,
	P54_TK22_SETTING			= 4,
	P55_TK23_SETTING			= 4,
                      
	P50_PWM0_SETTING			= 5,
	P51_PWM1_SETTING			= 5,
	P52_PWM2_SETTING			= 5,
	P53_PWM3_SETTING			= 5,
	P54_PWM4_SETTING			= 5,
	P55_PWM5_SETTING			= 5,
	P33_PWM6_SETTING			= 5,
	P32_PWM7_SETTING			= 5,
                        
	P40_ADC0_SETTING			= 3,
	P41_ADC1_SETTING			= 3,
	P42_ADC2_SETTING			= 3,
	P43_ADC3_SETTING			= 3,
	P44_ADC4_SETTING			= 3,
	P45_ADC5_SETTING			= 3,
	P46_ADC6_SETTING			= 3,
	P47_ADC7_SETTING			= 3,
	P32_ADC_VREF_SETTING		= 0,
                       
	P30_UART0_TX_SETTING		= 3,      
	P31_UART0_RX_SETTING		= 3,      
	P66_UART1_TX_SETTING		= 3,      
	P67_UART1_RX_SETTING		= 3,      
	P61_UART2_TX_SETTING		= 4,      
	P60_UART2_RX_SETTING		= 4,      
                       
	P36_I2C_SDA_SETTING		= 3,      
	P37_I2C_SCL_SETTING		= 3,      
                      
	P30_I2C_SDA_SETTING		= 4,      
	P31_I2C_SCL_SETTING		= 4,      
	P66_I2C_SDA_SETTING		= 5,      
	P67_I2C_SCL_SETTING		= 5,      
	P61_I2C_SDA_SETTING		= 5,      
	P60_I2C_SCL_SETTING		= 5,      
	
	P64_SPI_SCK_SETTING			= 4,      
	P62_SPI_MISO_SETTING		= 4,      
	P63_SPI_MOSI_SETTING		= 4,      
	P65_SPI_SSB_SETTING			= 4,      
	
	P34_OPAPS_SETTING					= 5,
	P35_OPBPS_SETTING					= 5,
	
	P17_OPAPS_SETTING					= 4,
	P16_OPBPS_SETTING					= 4,
	
	P20_CMP0P_SETTING						= 4,
	P21_CMP0N_SETTING						= 4,
	
	P22_CMP1P_SETTING						= 4,
	P23_CMP1N_SETTING						= 4,
	
	P24_CMP2P_SETTING						= 4,
	P25_CMP2N_SETTING						= 4,
	
	P26_CMP3P_SETTING						= 4,
	P27_CMP3N_SETTING						= 4,
	
                        
	P34_T0_SETTING				= 1,        
	P35_T1_SETTING				= 1,        
	P10_T2_SETTING				= 1,        
                        
	P75_RESET_SETTING			= 3,			  
	P57_CAP_SETTING				= 4,        
	P72_XOSCL_IN_SETTING			= 3,
	P71_XOSCL_OUT_SETTING		= 3,  
	P74_XOSCH_IN_SETTING			= 3,
	P73_XOSCH_OUT_SETTING		= 3,  
	
	P73_ERC_SETTING		= 3,      
	P12_T2CP_SETTING			= 4,  
	P11_T2EX_SETTING			= 1,  

	P70_SAMPLE_SETTING			= 3,
	P56_FAULT_SETTING			= 1,

	PU_EN				= 0x80,
	PD_EN				= 0x40,
	OP_EN				= 0x20,
};	
#define  GPIO_Init(reg,val)	reg = val


/******************************************************************************/

#endif
